package com.alex;

import com.alex.pojo.Person;
import com.alex.pojo.PersonAnnotation;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application03_anotation {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans03.xml");

        PersonAnnotation person = ctx.getBean("person", PersonAnnotation.class);
        person.getDog().show();
        person.getCar().show();
    }
}
